Optimal. Leaf size=168 \[ -\frac{3}{2} \sqrt{\frac{\pi }{2}} \sqrt{b} \sin (a) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{b} x\right )-\frac{1}{2} \sqrt{\frac{3 \pi }{2}} \sqrt{b} \sin (3 a) \text{FresnelC}\left (\sqrt{\frac{6}{\pi }} \sqrt{b} x\right )-\frac{3}{2} \sqrt{\frac{\pi }{2}} \sqrt{b} \cos (a) S\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right )-\frac{1}{2} \sqrt{\frac{3 \pi }{2}} \sqrt{b} \cos (3 a) S\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right )-\frac{\cos ^3\left (a+b x^2\right )}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.143579, antiderivative size = 168, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 5, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.357, Rules used = {3394, 4574, 3353, 3352, 3351} \[ -\frac{3}{2} \sqrt{\frac{\pi }{2}} \sqrt{b} \sin (a) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{b} x\right )-\frac{1}{2} \sqrt{\frac{3 \pi }{2}} \sqrt{b} \sin (3 a) \text{FresnelC}\left (\sqrt{\frac{6}{\pi }} \sqrt{b} x\right )-\frac{3}{2} \sqrt{\frac{\pi }{2}} \sqrt{b} \cos (a) S\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right )-\frac{1}{2} \sqrt{\frac{3 \pi }{2}} \sqrt{b} \cos (3 a) S\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right )-\frac{\cos ^3\left (a+b x^2\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3394
Rule 4574
Rule 3353
Rule 3352
Rule 3351
Rubi steps
\begin{align*} \int \frac{\cos ^3\left (a+b x^2\right )}{x^2} \, dx &=-\frac{\cos ^3\left (a+b x^2\right )}{x}-(6 b) \int \cos ^2\left (a+b x^2\right ) \sin \left (a+b x^2\right ) \, dx\\ &=-\frac{\cos ^3\left (a+b x^2\right )}{x}-(6 b) \int \left (\frac{1}{4} \sin \left (a+b x^2\right )+\frac{1}{4} \sin \left (3 a+3 b x^2\right )\right ) \, dx\\ &=-\frac{\cos ^3\left (a+b x^2\right )}{x}-\frac{1}{2} (3 b) \int \sin \left (a+b x^2\right ) \, dx-\frac{1}{2} (3 b) \int \sin \left (3 a+3 b x^2\right ) \, dx\\ &=-\frac{\cos ^3\left (a+b x^2\right )}{x}-\frac{1}{2} (3 b \cos (a)) \int \sin \left (b x^2\right ) \, dx-\frac{1}{2} (3 b \cos (3 a)) \int \sin \left (3 b x^2\right ) \, dx-\frac{1}{2} (3 b \sin (a)) \int \cos \left (b x^2\right ) \, dx-\frac{1}{2} (3 b \sin (3 a)) \int \cos \left (3 b x^2\right ) \, dx\\ &=-\frac{\cos ^3\left (a+b x^2\right )}{x}-\frac{3}{2} \sqrt{b} \sqrt{\frac{\pi }{2}} \cos (a) S\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right )-\frac{1}{2} \sqrt{b} \sqrt{\frac{3 \pi }{2}} \cos (3 a) S\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right )-\frac{3}{2} \sqrt{b} \sqrt{\frac{\pi }{2}} C\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right ) \sin (a)-\frac{1}{2} \sqrt{b} \sqrt{\frac{3 \pi }{2}} C\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right ) \sin (3 a)\\ \end{align*}
Mathematica [A] time = 0.643549, size = 166, normalized size = 0.99 \[ -\frac{3 \sqrt{2 \pi } \sqrt{b} x \sin (a) \text{FresnelC}\left (\sqrt{\frac{2}{\pi }} \sqrt{b} x\right )+\sqrt{6 \pi } \sqrt{b} x \sin (3 a) \text{FresnelC}\left (\sqrt{\frac{6}{\pi }} \sqrt{b} x\right )+3 \sqrt{2 \pi } \sqrt{b} x \cos (a) S\left (\sqrt{b} \sqrt{\frac{2}{\pi }} x\right )+\sqrt{6 \pi } \sqrt{b} x \cos (3 a) S\left (\sqrt{b} \sqrt{\frac{6}{\pi }} x\right )+3 \cos \left (a+b x^2\right )+\cos \left (3 \left (a+b x^2\right )\right )}{4 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.033, size = 128, normalized size = 0.8 \begin{align*} -{\frac{3\,\cos \left ( b{x}^{2}+a \right ) }{4\,x}}-{\frac{3\,\sqrt{2}\sqrt{\pi }}{4}\sqrt{b} \left ( \cos \left ( a \right ){\it FresnelS} \left ({\frac{x\sqrt{2}}{\sqrt{\pi }}\sqrt{b}} \right ) +\sin \left ( a \right ){\it FresnelC} \left ({\frac{x\sqrt{2}}{\sqrt{\pi }}\sqrt{b}} \right ) \right ) }-{\frac{\cos \left ( 3\,b{x}^{2}+3\,a \right ) }{4\,x}}-{\frac{\sqrt{2}\sqrt{\pi }\sqrt{3}}{4}\sqrt{b} \left ( \cos \left ( 3\,a \right ){\it FresnelS} \left ({\frac{\sqrt{2}\sqrt{3}x}{\sqrt{\pi }}\sqrt{b}} \right ) +\sin \left ( 3\,a \right ){\it FresnelC} \left ({\frac{\sqrt{2}\sqrt{3}x}{\sqrt{\pi }}\sqrt{b}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] time = 1.38955, size = 721, normalized size = 4.29 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.82808, size = 412, normalized size = 2.45 \begin{align*} -\frac{\sqrt{6} \pi x \sqrt{\frac{b}{\pi }} \cos \left (3 \, a\right ) \operatorname{S}\left (\sqrt{6} x \sqrt{\frac{b}{\pi }}\right ) + 3 \, \sqrt{2} \pi x \sqrt{\frac{b}{\pi }} \cos \left (a\right ) \operatorname{S}\left (\sqrt{2} x \sqrt{\frac{b}{\pi }}\right ) + \sqrt{6} \pi x \sqrt{\frac{b}{\pi }} \operatorname{C}\left (\sqrt{6} x \sqrt{\frac{b}{\pi }}\right ) \sin \left (3 \, a\right ) + 3 \, \sqrt{2} \pi x \sqrt{\frac{b}{\pi }} \operatorname{C}\left (\sqrt{2} x \sqrt{\frac{b}{\pi }}\right ) \sin \left (a\right ) + 4 \, \cos \left (b x^{2} + a\right )^{3}}{4 \, x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos ^{3}{\left (a + b x^{2} \right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (b x^{2} + a\right )^{3}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]